package com.news.entity;

public class Admin {
	// 管理员id
	private int adminId;
	// 管理员账户
	private String adminName;
	// 管理员密码
	private String adminPass;
	// 管理员头像
	private String adminAvatar;

	// get和set方法
	public int getAdminId() {
		return adminId;
	}

	public void setAdminId(int adminId) {
		this.adminId = adminId;
	}

	public String getAdminName() {
		return adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	public String getAdminPass() {
		return adminPass;
	}

	public void setAdminPass(String adminPass) {
		this.adminPass = adminPass;
	}

	public String getAdminAvatar() {
		return adminAvatar;
	}

	public void setAdminAvatar(String adminAvatar) {
		this.adminAvatar = adminAvatar;
	}

	// 构造方法
	public Admin(int adminId, String adminName, String adminPass, String adminAvatar) {
		super();
		this.adminId = adminId;
		this.adminName = adminName;
		this.adminPass = adminPass;
		this.adminAvatar = adminAvatar;
	}

	public Admin(String adminName, String adminPass, String adminAvatar) {
		super();
		this.adminName = adminName;
		this.adminPass = adminPass;
		this.adminAvatar = adminAvatar;
	}

	public Admin() {
		super();
	}

	public Admin(int adminId) {
		super();
		this.adminId = adminId;
	}

	// 重写toString方法
	@Override
	public String toString() {
		return "Admin [adminId=" + adminId + ", adminName=" + adminName + ", adminPass=" + adminPass + ", adminAvatar="
				+ adminAvatar + "]";
	}

}
